package com.ruoyi.system.domain.fx;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品采购
 * 对象 fx_good_purchase
 *
 * @author ruoyi
 * @date 2024-07-23
 */
@Data
public class FxGoodPurchase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 供应商商品id
     */
    private Long goodId;
    private Long parentId;
    private Long[] goodIds;

    /**
     * 供应商商品名称
     */
    @Excel(name = "供应商商品名称")
    private String goodName;

    /**
     * 创建者
     */
    @Excel(name = "创建者")
    private Long createUser;

    /**
     * 批发价
     */
    @Excel(name = "批发价")
    private BigDecimal tradePrice;

    /**
     * 零售价
     */
    @Excel(name = "零售价")
    private BigDecimal retailPrice;

    /**
     * 创建人姓名
     */
    @Excel(name = "创建人姓名")
    private String createUserName;

    /**
     * 采购数量
     */
    @Excel(name = "采购数量")
    private Long counts;

    /**
     * 店铺
     */
    private Long storeId;

    /**
     * 店铺名称
     */
    @Excel(name = "店铺名称")
    private String storeName;

    /**
     * 状态（0已采购 ， 1未采购）
     */
    private Integer status;
    // 供应商名称
    private String  createrName;


    public String getCreaterName() {
        return createrName;
    }

    public void setCreaterName(String createrName) {
        this.createrName = createrName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCounts(Long counts) {
        this.counts = counts;
    }

    public Long getCounts() {
        return counts;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getStoreId() {
        return storeId;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public BigDecimal getTradePrice() {
        return tradePrice;
    }

    public void setTradePrice(BigDecimal tradePrice) {
        this.tradePrice = tradePrice;
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodId", getGoodId())
                .append("createTime", getCreateTime())
                .append("createUser", getCreateUser())
                .append("remark", getRemark())
                .append("counts", getCounts())
                .append("storeId", getStoreId())
                .append("status", getStatus())
                .toString();
    }
}
